package com.yt.system.domain;

public class Vote {
    private Integer vid;

    private Integer actid;

    private Integer aid;

    private Integer vnum;

    private Integer ranking;

    private Double integral;

    private String notes;

    private User user;

    private GroupTable group;


    public Vote(Integer vid, Integer actid, Integer aid, Integer vnum, Integer ranking, Double integral, String notes, User user, GroupTable group) {
        this.vid = vid;
        this.actid = actid;
        this.aid = aid;
        this.vnum = vnum;
        this.ranking = ranking;
        this.integral = integral;
        this.notes = notes;
        this.user = user;
        this.group = group;
    }

    public Vote() {
        super();
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public Integer getActid() {
        return actid;
    }

    public void setActid(Integer actid) {
        this.actid = actid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getVnum() {
        return vnum;
    }

    public void setVnum(Integer vnum) {
        this.vnum = vnum;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public Double getIntegral() {
        return integral;
    }

    public void setIntegral(Double integral) {
        this.integral = integral;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes == null ? null : notes.trim();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public GroupTable getGroup() {
        return group;
    }

    public void setGroup(GroupTable group) {
        this.group = group;
    }

    @Override
    public String toString() {
        return "Vote{" +
                "vid=" + vid +
                ", actid=" + actid +
                ", aid=" + aid +
                ", vnum=" + vnum +
                ", ranking=" + ranking +
                ", integral='" + integral + '\'' +
                ", notes='" + notes + '\'' +
                ", user=" + user +
                ", group=" + group +
                '}';
    }
}